#!/bin/bash
echo "1. Step T1 Generating SRC files"
for FILE in /data/DICOM; 
do 
    echo "source=$FILE"; 
    dsi_studio --action=ren --source=$FILE --output="/data/target" --to_src_nii=1 > /data/logs/1.ren.log 
	echo "output=*.src.gz"; 
    mv /data/target/*/*.src.gz /data/src > /data/logs/1.ren.log 
done